(function(){

	//4.2推荐商品
	var user_a = require("./3.用户注册与登录").user_a;
	var bus_a = require("./3.用户注册与登录").bus_a;
	var config = require("../_include/config");
	var db = require("../db/index");
	var UserAddressCon = require("../user_address/_con");
	//获取用户的收获地址
	console.log("用户的收获地址为：",user_a.getAddress());
	//添加收获地址
	var ua = new UserAddressCon({
		province:"福建省",
		town:"福州市",
		county:"闽侯县",
		postcode:"31111041",
		detail:"上街1号",
		name:"柯肇丰",
		mobilenumber:"18046048662",
	});
	if(user_a.addAddress(ua._id)){
		console.log("成功添加收获地址",ua._id);
	}else{
		console.log("添加收获地址失败");
	}
	//获取收获地址
	console.log(user_a.getAddress());
	console.log("用户的收获地址为：",user_a.getAddress());
	//移除收获地址
	user_a.removeAddress(ua._id);
	console.log("移除收获地址：",ua._id);
	//获取收获地址
	console.log("用户的收获地址为：",user_a.getAddress());
}());